# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>

pkgbase=libreoffice-still-i18n

pkgver=7.4.7
pkgrel=1
_rcver=${pkgver}.2
#_oodlver=${pkgver}.0.beta1
_oodlver=${pkgver}

arch=('any')
url="https://www.documentfoundation.org"
license=('LGPL')

#https://download.documentfoundation.org/mirrors/all.html

_url="https://download.documentfoundation.org/libreoffice/stable"
#_url="https://download.documentfoundation.org/libreoffice/testing"
#_url="https://dev-builds.libreoffice.org/pre-releases"


#_url+="/${pkgver}-rc2/rpm/x86_64"
#_url+="/${pkgver}/rpm/x86_64"
_url+="/${pkgver}/rpm/x86_64"
#_url+="/rpm/x86_64"

# https://wiki.documentfoundation.org/Language_Teams
# https://wiki.documentfoundation.org/Language/Support

_languages=(
  'af            "Afrikaans"               0'
  'am            "Amharic"                 1'
  'ar            "Arabic"                  1'
  'as            "Assamese (India)"        0'
  'ast           "Asturianu"               1'
  'be            "Belarusian"              0'
  'bg            "Bulgarian"               1'
  'bn-IN         "Bengali (India)"         1'
  'bn            "Bengali"                 1'
  'bo            "Tibetan"                 1'
  'br            "Breton"                  0'
  'brx           "Bodo"                    0'
  'bs            "Bosnian"                 1'
  'ca-valencia   "Catalan (Valencia)"      1'
  'ca            "Catalan"                 1'
  'ckb           "Central Kurdish / Soranî‎ / سۆرانی " 0'
  'cs            "Czech"                   1'
  'cy            "Welsh"                   0'
  'da            "Danish"                  1'
  'de            "German"                  1'
  'dgo           "Dogri"                   0'
  'dsb           "Sorbian: Lower Sorbian / Dolnoserbski" 0'
  'dz            "Dzongkha"                1'
  'el            "Greek"                   1'
  'en-GB         "English (GB)"            1'
  'en-ZA         "English (ZA)"            1'
  'eo            "Esperanto"               1'
  'es            "Spanish"                 1'
  'et            "Estonian"                1'
  'eu            "Basque"                  1'
  'fa            "Persian"                 0'
  'fi            "Finnish"                 1'
  'fr            "French"                  1'
  'fur           "Friulian / Friulan"      0'
  'fy            "Frisian / West Frisian / Frysk / Fries" 0'
  'ga            "Irish"                   0'
  'gd            "Gaelic (Scottish)"       0'
  'gl            "Galician"                1'
  'gu            "Gujarati"                1'
  'gug           "Guarani"                 0'
  'he            "Hebrew"                  1'
  'hi            "Hindi"                   1'
  'hr            "Croatian"                1'
  'hsb           "Sorbian: Upper Sorbian / Hornjoserbšćina" 0'
  'hu            "Hungarian"               1'
  'id            "Indonesian"              1'
  'is            "Icelandic"               1'
  'it            "Italian"                 1'
  'ja            "Japanese"                1'
  'ka            "Georgian"                1'
  'kab           "Kabyle / Kabylian / Taqbaylit / Taqbaylit / Tazwawt" 0'
  'kk            "Kazakh"                  0'
  'km            "Khmer (Cambodia)"        1'
  'kmr-Latn      "Kurdish"                 0'
  'kn            "Kannada"                 0'
  'ko            "Korean"                  1'
  'kok           "Konkani"                 0'
  'ks            "Kashmiri"                0'
  'lb            "Luxembourgish"           0'
  'lo            "Lao"                     1'
  'lt            "Lithuanian"              1'
  'lv            "Latvian"                 1'
  'mai           "Maithili"                0'
  'mk            "Macedonian"              1'
  'ml            "Malayalam"               0'
  'mn            "Mongolian"               0'
  'mni           "Manipuri"                0'
  'mr            "Marathi"                 0'
  'my            "Burmese"                 0'
  'nb            "Norwegian Bokmal"        1'
  'ne            "Nepali"                  1'
  'nl            "Dutch"                   1'
  'nn            "Norwegian Nynorsk"       1'
  'nr            "Ndebele (South)"         0'
  'nso           "Northern Sotho"          0'
  'oc            "Occitan"                 0'
  'om            "Oromo"                   1'
  'or            "Oriya"                   0'
  'pa-IN         "Punjabi (India)"         0'
  'pl            "Polish"                  1'
  'pt-BR         "Portuguese (Brasil)"     1'
  'pt            "Portuguese"              1'
  'ro            "Romanian"                1'
  'ru            "Russian"                 1'
  'rw            "Kinyarwanda"             0'
  'sa-IN         "Sanskrit (India)"        0'
  'sat           "Santali"                 0'
  'sd            "Sindhi"                  0'
  'si            "Singhalese"              1'
  'sid           "Sidama"                  1'
  'sk            "Slovak"                  1'
  'sl            "Slovenian"               1'
  'sq            "Albanien"                1'
  'sr-Latn       "Serbian (Latin)"         0'
  'sr            "Serbian"                 0'
  'ss            "Swati"                   0'
  'st            "Southern Sotho"          0'
  'sv            "Swedish"                 1'
  'sw-TZ         "Swahili (Tanzania)"      0'
  'szl           "Silesian"                0'
  'ta            "Tamil"                   1'
  'te            "Telugu"                  0'
  'tg            "Tajik"                   1'
  'th            "Thai"                    0'
  'tn            "Tswana"                  0'
  'tr            "Turkish"                 1'
  'ts            "Tsonga"                  0'
  'tt            "Tatar"                   0'
  'ug            "Uighur"                  1'
  'uk            "Ukrainian"               1'
  'uz            "Uzbek"                   0'
  've            "Venda"                   0'
  'vec           "Venetian"                0'
  'vi            "Vietnamese"              1'
  'xh            "Xhosa"                   0'
  'zh-CN         "Chinese (simplified)"    1'
  'zh-TW         "Chinese (traditional)"   1'
  'zu            "Zulu"                    0'
)
validpgpkeys=('C2839ECAD9408FBE9531C3E9F434A1EFAFEEAEA3') # "LibreOffice Build Team (CODE SIGNING KEY) <build@documentfoundation.org>"
sha256sums=('73185ac94bb44d576b86d7a3e352f6fe5ddebc22b1257a0f7d1b9dee500e1562'
            'SKIP'
            '8d54b531fd11abf1eaf2c41968c2bfe308a0791ac82768ff0776a7c9c4ed3b8a'
            'SKIP'
            '69748912d2fe6f4e79ebd9b07f3dae83d8403ad883cc623967f98a9dc1f76cbb'
            'SKIP'
            'bad01ff7f02b5d52674377c42fb025eaea1a1dfc0ed6929c1d94e7a2336036f6'
            'SKIP'
            '1af52449158a4a630e8f26a2b296126087e50021b13131e28e2ac503b1562505'
            'SKIP'
            'fae69217611cf631fa7979fd9ffa9923c874b329c4dc7de47836a3d1a20c187a'
            'SKIP'
            'a8b2d0150c18f136b39ef372deb837e7b65cc5fa9ee0a7e8c60cbd42bca391b3'
            'SKIP'
            '0dfface13f3f887be928e5b5356ced213ce72c2a9e5d327e78f8b03c57017ff6'
            'SKIP'
            'aa8548d23b49c67ed648406f7a00af7e9d5598bd9d69fd4b01110812b6f07c52'
            'SKIP'
            '39d36dc6b882993bb37c04333f85816a475a156295cf30cae08d7ef2be34f892'
            'SKIP'
            '78f30a29de4b93d00f49b713225b5c9c991e4753d0708077f2ea2e89b9004b3a'
            'SKIP'
            '21b77677a129952d1eade28b3a5e4e1a4585c41703906c0282e577ad47a95fc5'
            'SKIP'
            '007dae82ff7c1b0a115c0a97d360988a3971ca33df89b7be481e7dc89d1db72d'
            'SKIP'
            '7e08e3cb03afc215f720429aaa9264cae783c889ed785973e72374889ff9c52f'
            'SKIP'
            '26a254a353cc4d8ba1887e856b4aa1203dee1fd53b576107f48c1ed8d56536d7'
            'SKIP'
            '03abc27e40b2cf96df920126fb2680ee9a1a1d3245f99871048812ac267c2ddf'
            'SKIP'
            'e2338655c59289cedff54abdadf34ff86784facdc782321673258bdbd2332546'
            'SKIP'
            '6e080b21d3035a124f57d09fe677f4c42448f6bde98d21ffed4ffa3e45c33edd'
            'SKIP'
            'a4b393666bf72f042668ee6173adb4cb266f1c6276f5530c815b7933edc1a483'
            'SKIP'
            '236a5cb4b0269dabc3060dd605eb6120a3939993c661b9b36b24c353d21ec8d2'
            'SKIP'
            '3ef9f86a407e5b18014c705ed79bd9a27b5f267f9f5af7eb102d661fd6fc5136'
            'SKIP'
            '382cdd92e9a804e47b3900dfd8784988d4c0117e10fc8d87e090998a1ffe758e'
            'SKIP'
            'abbb3a7223eccae1ab96e8a544f38ed03a2146c11551411ea88084247e6f3d68'
            'SKIP'
            'a0fc01099305b554bd3f8a5f1ba0c211c6cd71f0f3ac39d975b7457f84249262'
            'SKIP'
            '93ffc86a0c1836cb0ab03d9177452f1f97fc85fc665121256b47747797c46d33'
            'SKIP'
            '84b1294013180573e3ab820d193e1c47e8a643811c7da19011b89c82986010ed'
            'SKIP'
            '519459249c60229a0d06c01901029906ce102c2662f7a8c46afd8b717f4bafa5'
            'SKIP'
            '5d8ffdbe176ad4bcc9dd1028d44cdbc5c352d189f389df3a8c7c6aa2995f8ef6'
            'SKIP'
            'cf926e8ce1f04f75cc4395b181e9f74edc4e3de498f9d14dd95724f2c4fcfd30'
            'SKIP'
            '8e39e4151d523a8e17e21a4c61c79b9958adf62af401ed1c136d8e75da1c46c4'
            'SKIP'
            '5b760e8eeb29d78d7abff759d9f56e86d4d43186216beea3c3b2f71556d52d8d'
            'SKIP'
            '58c880f44859f8a36140d7322af39f679939edbbae81b4bc9677fa0c7dcc7cd4'
            'SKIP'
            'e67465bb09631b83c82092fe105048e8a55d58d42e7b648f26be5d91c9bd19e3'
            'SKIP'
            'c84bcba2bb1a42db05af3cb2303ce13beeef5a1183375dc8cd330f9e42c54c26'
            'SKIP'
            '2ab4d5e640b89c45b3fa6d1782295eae12bafe4de0f0b391237d6c5e0489fa0c'
            'SKIP'
            'ec07c585fd5b9465f16a30abff5148ddba4e4e4e5986a38245afcdf8a05817b1'
            'SKIP'
            '636a771d3b32fce168319dfa9d51083379c4f11ad8d5b9fa8bb60188db90ed08'
            'SKIP'
            '1e3f48ddf47da625afa71e37bfa936dee7155eace445562a38be504b7bc3cf37'
            'SKIP'
            'f6b10c642723d84528d39a22284fd3cca3eccc2a4d2d6f6b1c52e54ed85c7279'
            'SKIP'
            'e45471553c86824fbfd2f001f5728700c9c70fb4385142ec1968cf50a3398c25'
            'SKIP'
            'b188e7c0ee93a8f4b343a8dd4aa8c96c3324c23aaa936120e932c1278cf96882'
            'SKIP'
            'c643876c3f5511b30e13daa72f01e0ab1e844c2a0e3c46b525fe17a57d4c7dcd'
            'SKIP'
            'e6c126b7c4bd31ea91014f45317e22513d19a65e03e5c00f4e92ed4d87688e09'
            'SKIP'
            '5c2cc5f007d56e6f57ab7848e0c143d08dcba13a5363b3fd055ce10e228e8ea2'
            'SKIP'
            '4a91be5899b91b12cfecfb22786187b63988a2803f66e32c320f96f6ab49a0b2'
            'SKIP'
            '862e9ccba5b81a52091f7f801f93b98d94eb9dfa1b65363a148fcd3468c3f9f4'
            'SKIP'
            '63b3ded6898c9480166cd3782b740e3a4381b4084c560dec6265b3b11f0a509f'
            'SKIP'
            'a47f032122f2c20b84943389f99e0fd0e44c05ffcb3262ae702f46cf7b0e0123'
            'SKIP'
            '79d766c3ce5277a349c7008554f455ba913c8853f9c59c55c40fb0c5046dca90'
            'SKIP'
            'ce295ff1ba88d92af9d64383e605b6246d82c54c9def1eb237fe183dcae87fac'
            'SKIP'
            'acfe4de5789f54162ec50b72a339b28811bfbd53f50d9189dfe38e0ebd6b19a0'
            'SKIP'
            'c25b370f5a9b563ac8faca10180dd0238b4194af07ec8870022508383a0dab2c'
            'SKIP'
            'b7f0bfe2ef731c3091b55b0344effd4d7923cfed8343bc3b336cb50670bfd92b'
            'SKIP'
            '250564a425f35e07c87380a49ca1dd636cb39b3a7cee398293c636de69a82706'
            'SKIP'
            '8b713c76bbddace20bf25b38c00536b84071983328aeeb3d8c804ae21524b84f'
            'SKIP'
            '1783d5e6b8a81e66b2e8fa8e92465e2482cb2b1e294f91b651ae360aa1762591'
            'SKIP'
            '56645305bfc7cd4d968bd15fb9e47a23f9175bb8137bf5665270642fb9f278de'
            'SKIP'
            'eff0cdb813b8edda6d2835d0833f0b6292b107e96d2017f035e22760387f9f5d'
            'SKIP'
            '699db53347a1c775e98e7d4dc16885078718f80b887fe6e47ebb1f706928ae93'
            'SKIP'
            '9e038e22bcb781abbe4f1ea96fd8571b152485141c00cc1ec9729659d1ffef19'
            'SKIP'
            '5bd4b277796e3f38bd772877913df99a1432cf44e626d40f80ca04ecfce55596'
            'SKIP'
            '2691275526ed5f3d08528dcddba1af23cc4829df9e614169d35d01e7e51828b5'
            'SKIP'
            '56bd8f6b20eb1cb2682f94a9f4a7fed9a2b4f83c6f551057a89b5f59fc302ed5'
            'SKIP'
            '4cc2e8915113773279bd41fe874ad383db696e22707f0cc2de45b872b48c6c73'
            'SKIP'
            '52a2ff50046a3c0f007243c2f89ddeae9a389419e7a7e4aa7029583f16f76873'
            'SKIP'
            '7b2d6eb910c0495e7c177e8f8d458a99208bab280bb2bd0d11d61f16fba1da08'
            'SKIP'
            '499b99267fa76779ed2484183e36042c864aa00393555570bf707e8dd22debb9'
            'SKIP'
            '4446079f00c6768149fc580db887c4eaca1c7c129e237e89931e983833fa311d'
            'SKIP'
            '10d5075a972bac14a6b6046dd98c6f038eb96a03263c8dfc433e9f11e155eabf'
            'SKIP'
            '8b3471096349f588f51a776cd470a38276bc733a6c4e43fbc73365276f1c6cc5'
            'SKIP'
            'f43f40c08458b94e2ead4760aca075f8aac57e938cc5cb77570995a3dd786ec7'
            'SKIP'
            '4767346fb7aaa49de70b597412c04fed8841b3e167ab5c592e03a36bee2dda3d'
            'SKIP'
            '097ebaeddf10f04bbb9380f7a2a1912c913f054f3e06255ecd3567b6e0242698'
            'SKIP'
            '729d1a12598cdf5e79f52ab6525d8660c724f81233ebeb6e3d3ac0ac46f33221'
            'SKIP'
            '61f37feb7072100e16fba8ff07185121fce243f2333a3f4befab2d8289f79838'
            'SKIP'
            '18882b8fa5c40fea8e373a159c263e8cdfcf09b9f5a268c29562270b1907ae26'
            'SKIP'
            'f8725b2fce440114e33beaed907a3c86be4c2671b259af402d223c9d2d768159'
            'SKIP'
            '812829d78b9f2a15dfd7d79fb0acb2b2c6dfc8563b2093c3d9dba70a439d2316'
            'SKIP'
            '9e6ae6eac4f199612195ab784a96c295fd5fb9aef87f26f6be57d6d72bc36b82'
            'SKIP'
            'd37ea51dfcd1dac61a2e2d3246bc604bffbb999486d6de1c81bb15d33de08c10'
            'SKIP'
            'efc49fa7ef198fe006cbe60d7697651b2e6d7d87c8e516e2ade0ee578500161c'
            'SKIP'
            '8c816c63165b03386f0742921a97875b91c3ba31b5dafb84c919ac825910206f'
            'SKIP'
            '03d465ef2368a5535d966aa366e349866081261341c27c51710549270d86403e'
            'SKIP'
            '2eebe5ca1ae83b8c9a278735d34126c818b7d2ccefab0224b7b269577b2e2f73'
            'SKIP'
            'ed07bf6d132adb12f384aef630788fc24ae085d6c5cb8b764c05cab63d26cc46'
            'SKIP'
            'df66328f810b0146a1720f0a03b2919460bdbefa45a38e57f2723efe5474ce17'
            'SKIP'
            '0c75967630e6c49135d100d75dc558e4c03da003a354ca6ba1caca9fac6b9d19'
            'SKIP'
            '2c8cc8057932fdb02a9b7c2fdff5a51b0b4b9fd251b73638cffedaa8e2fc989d'
            'SKIP'
            '7ad9b87addf0ce6c908081f3502f0a0bdbf8d495dec46db62b0eb66f63288d09'
            'SKIP'
            '87c69714ca76c146b2b63938fc4443af50247a4d00044305abdaab6800d9a091'
            'SKIP'
            '9673b15b6dbd36b5fd7a06e280aaff263120eec640c1b84d924cfb7d8417cd3e'
            'SKIP'
            '6fbd685e446ff4d76815f1817c3b18209c7464d241305b3eac3eb449b9d157f0'
            'SKIP'
            'd180fc4fdd149bceba35028c527972957439458bf1ae28acfa92e3324766209e'
            'SKIP'
            'cbe03d680b900bad53632bdb014131fd8e3402d91a3b5192b424edb38a2105c1'
            'SKIP'
            '6c900dbba47b03e9a4dd6cb05e82f3b8b18ec9a5009d5abb830f06693318a86f'
            'SKIP'
            '1a39eb77046a2aeafe7452f43d0d1cae5adcc36f0ef80ff70811ab4140327328'
            'SKIP'
            '1fd174de112666f6fbed2e68494d19f5ba8115ef574ca4000aca43d0cafbc2cb'
            'SKIP'
            'dab37eeaa36f9cb4153042e62a2f5a849b8dbfe44c109ef7b586f5d67506bd8a'
            'SKIP'
            '7672949d0ed47fd2a92b92f308b57faeb7870420432063a4313acf8db86e9584'
            'SKIP'
            'c3b1140de4af6adddce73791988a5beefc34c58203f9e10b383a7a5bb50b923c'
            'SKIP'
            '5228a4efd7d0803a3969acaa52c47eec5eb3b8e536b09d074083c40b895da92f'
            'SKIP'
            '6783472388d1bed6027ca46c25b3697a4081f2e97f7b09464f4b5d41e1de4a97'
            'SKIP'
            'd167f23fae01ab1b2431c3d67c7a98265e606924a8d8325e1bcda6d9332ee686'
            'SKIP'
            'd8560e1779369548f922792a460931ed2951be3e5be0f2001a2367acfdd9ae93'
            'SKIP'
            'a591ea59a9c5bfe165d3f573e95ad380842c9099fb0d55d4a7b986845b720189'
            'SKIP'
            'b1993a1f86b20e71312ac88ec987f96cf4698554cdc72749da1ae47701167d01'
            'SKIP'
            '3579bb3390d3306df90d73ff32a5596a0a2980a755288c5d0ecd1c60a99560fe'
            'SKIP'
            'a7e428a4fbedeebbcd229685253b976e509e0f4b8bc8bc74c40cb99413ff9283'
            'SKIP'
            '6af67ac8e560c97a2b1d663e005d26aec6a2a4ecd156e81bb06331504e7dc991'
            'SKIP'
            '748c634cac903324725ab469f32bd5c2d451aa8c116a05aed25c4502aa0a1d0c'
            'SKIP'
            '176c9fa242ef9d814242302b8076c212e5dbd33292482f04a5dac4243bd19b1f'
            'SKIP'
            'd81e365b75728cc855e068279c82767a5b7ffc343d2c11c9c36ecd8f7976d023'
            'SKIP'
            '2f6037e73d6e4c7f6ea519d5c345f0b374f3728e1feb399ab07707713764803c'
            'SKIP'
            'cf25a4028257dc8fe58943bf28924af36ba9cd1439f7833b66d23195d8280393'
            'SKIP'
            'ef9cb357b7d6e215ffdb0cf7483ad32e3049b3cb0b4e0da69fcd286ba3362969'
            'SKIP'
            '950c5899bd492dcad898034f220d1838e16b51e9e7cc62eef8b4795b88a3a1d1'
            'SKIP'
            '3ec831f3558064c75f54ae345cfd823b1613dba9c2a91eb220b5e0f992f64bc3'
            'SKIP'
            '3c747432bc496b2c6d219b71998771acf59e59445d2bfb1f647554285bdf0c8e'
            'SKIP'
            '3ee148e3c403fe13ed2034c96697afdaaf3a2e1d9a43015eedb85b9be7aabb39'
            'SKIP'
            '8e463a8e6de4f764961c575c16705ecf32e0067b150d4bb5c131a84d9650783a'
            'SKIP'
            'be00515f68f29e09adbbca8ed3cb5f7b4a92ce9bdd0b7c37abdc625ec04cd676'
            'SKIP'
            'e9814b890d0bc9a8a2ebaa8c76445ab516fdfa5e784e3af59baca22ed363baa7'
            'SKIP'
            '657dfb9d9d3b4e91bd0b8cdcdc49ee81826af1a62274b24c2682e6fd3eeb9adb'
            'SKIP'
            '6abc4e1ac8c01844632c9a0d0050c177916edba780a7d8cbf40f05b25cc3cbc8'
            'SKIP'
            '567985534cdcda06e90386df3212ee28b8ae5409b4527e898f381bcdcaca2a9d'
            'SKIP'
            '6f8fd9e2652511f98b0de350790858476434734c6e98a7a2ae839d258d6dadfc'
            'SKIP'
            'a6d5174cba74b1151684d59bab843256f2f398cb42f7be7d419ed6ee67ebea89'
            'SKIP'
            '1dd08b5657bbae888c4a0a82ac9012d71de3980bb4817ce4cab3b8ae33808cff'
            'SKIP'
            'b93ae08d5cc548a6ae08a5cb43bfcefba26bb65c00699e7012d967e89555def8'
            'SKIP'
            'bb56ca3da807da19be7594f96c30f7da5d1e2e318a632ad5e974967968888e7c'
            'SKIP'
            '34633964072aaaf3b31a7d9a2e2d424b6cc6172d5a91ad16996df148fc9679c5'
            'SKIP'
            '3c613d617d02ea844fc267704ac3f88c5631edd8a76910bd00c8616a3f5954bf'
            'SKIP'
            '0dbb039bee9720861e2d663d067cad3bda1d87e8322f30635bedf0cf706f1c04'
            'SKIP'
            '423b9e155887a30786fd1461d9c9b28c61c916ed6e46371f1481b5b53b036f7c'
            'SKIP'
            '9b9a6db66707e4055861d6347615bb70bb1cee8eab69ec12571937cfe0d9eeed'
            'SKIP'
            '24da9f67ca116144644c63f77941c19c97a95fcb2cab1fd01145ee9038a8c028'
            'SKIP'
            '2df0acd859912960970277930068283b5c162196ed35fef874a437ebbe7306ec'
            'SKIP'
            '3a6583384de5936127199b15786c22659da9a65452ed471b079be4022accb182'
            'SKIP'
            'a0da6fa20fa095600b1b1c812c9371972297b5cc24ab0694fb4cd6fe1569ac28'
            'SKIP'
            '13802257e628ed5c98ced39d8a630a84c56592d096e2089246e061f9aa4db9c7'
            'SKIP'
            'a7362fa23fe8af0c76fa7337208615592f4164b6a4381e443ed1b2d3c8312aad'
            'SKIP'
            '1614d72f12f7916bb299b7fdecac74d838e6a4667e29ab18c3eed869f67ece9f'
            'SKIP'
            'b051839d0d6a8ff47ec47babc38b5fd5392f93862107b42f50217bdc0fea7e79'
            'SKIP'
            '829408016c6bdbad022f79a8d2fb79fd9983654fdcbd9be1c0e8e291c4cb0eb2'
            'SKIP'
            '25b2c69c4cd864cd95ff9b842b330fea12261173d41ce0514fc0ff309cb03453'
            'SKIP'
            'f151cbb80f68b677c380a0bf4d77e9e72bbdd79db53c5dac523114205a57a05a'
            'SKIP'
            '8cd6ed6cd5cd06af4182b1d944f07dd02c573e64efa8327fe7da191de98df3d2'
            'SKIP'
            'e403f9584115a9708d7e0185682eadcd31d4cc12deaa83b8619e67eac10b5f09'
            'SKIP'
            'd5f4766a572831ba6c73283dae6b489c4741140b3dfe2ceea089833893a736a8'
            'SKIP'
            'cd3b9f4e7d84e67bb00ade779a023e91508fe5623a5b0210c5daecf506d38187'
            'SKIP'
            'a61e9f9659a214479da8e1c7a0a3593e49fef099c20072a2b0da7825eabc65b5'
            'SKIP'
            'bca65208c6d736382f95dff8da2a07e65970af6c8704c71d849d9d1452bf137c'
            'SKIP'
            'f26d4d002df3e3d7c3d81667a9da56c5fdff328c362be83e9019597ec7a45162'
            'SKIP'
            '18a6dd60dbc36777c6ded86651da84d3128f6c66c5639ffc1ed1afee5db80ad1'
            'SKIP'
            '788e982b9226a5f754589c892924842de4bd7024f660c3d102d71eb45a635f03'
            'SKIP'
            '9a3825518ea57530c07b218b2b1adb8aa7f9bf449a1c26da86a2ed608e371245'
            'SKIP'
            '02e14a2682c90ea90ec87bc256176eb3649cb08be271436e8e790a5628e52d3c'
            'SKIP'
            'f0b8b7e5b3a8aaa96646169f847207cb81d0e1465c5c64164738fc9df9103738'
            'SKIP'
            '4bd885dcb6722603201d31beb4d4366b5d15811672115d2a7ee636718ffc5ad7'
            'SKIP'
            'a07a9f54b081045083bf49fbe3d153640c3e129ff8e04fdee3d53c26732fb7e8'
            'SKIP'
            '2a85705ae7da905926c099f55435811e8a260c595b7a2792431b5da5c187545b'
            'SKIP'
            '835087769f2664fa216e11a06553d3291b7a9ed1e42eadaef75f6ae0ecdd127a'
            'SKIP'
            '2aeed341ab6ae15ddb90e53e136baf9a8f9bcdd25e75792f97f084bb259ceff3'
            'SKIP'
            '3f61c5c41e595e3bc9fb63f9ad07deeb1a824dff2f19ae2d0df05715d0774304'
            'SKIP'
            '014da004b7af601c750a25df6aa9d851315c181f9426a068d6099a01323af110'
            'SKIP'
            'e2e732630dab30e68512a881c767a1a3cb3db392f09c4948ee68b50184c9eecf'
            'SKIP'
            '278da8e10283964daa359777dd526e264aa8dd829b7883625c24c5c22b49dd2d'
            'SKIP'
            '33ccc325091959a5928e21a94003cecde0f7e61a4615d1598d9005c97b5b29eb'
            'SKIP'
            'c8c88a485f8d85abf30947d0d26de0e8d9eee35d0a507d6746f106cd27df35c9'
            'SKIP'
            'd3f5b804e17b144770baebf46f77338a6e14aa61b08c0c19c485194a180d4aa8'
            'SKIP'
            'e2fae4d84e743e23cd611eb545646652323e422264d81b3a739a680badb1a10c'
            'SKIP'
            'bb2b1993cd2715f3bb632fd2e3fdbf9f3d5d5f0258f9ea961529570398435f2f'
            'SKIP'
            'f05f469771aabe136c25d145819f8a19d1496a4b257dff288dbc118e07eba8e8'
            'SKIP'
            'c5171d321ba4cb23629aea9fb5c86480cb2ebc1a74a94670652d5ba7fbfe8317'
            'SKIP'
            '2cee4596769a2222c9e4301c0047ebdf9532da9cceb52768f434e23654f98899'
            'SKIP'
            '950bb442541cde986a8676bec3db9c7ebd778e4a114b05cfb1ddf81e9c9eae04'
            'SKIP'
            '6c02a1af2124c905e32ef19201f4ffced44ed1556f231a2eef5506ec19447d5c'
            'SKIP'
            'd4d3854370d29a73a7cbf9cb531d0356f8bf4fc462044b42021f9a9ced5197af'
            'SKIP'
            'c8cb743420adada708231cdda2b4255d4b8c8c0078b679eae65a578a20269b71'
            'SKIP'
            'c862ea967ab598e07dfaaaab709395960e8ad8057e4aa018f96fd92188b791c5'
            'SKIP'
            '7acd9cb8346551611b9b00f83aa703cbdf75ca67d0e9884331b8017cbb60871b'
            'SKIP'
            '7692504f37cf171b127dccf694cf6f8930c2b8804f6866b7d38120e80d09a242'
            'SKIP')

prepare() {
  for _lang in "${_languages[@]}"; do
    declare -a "_langa=($_lang)"
    _locale="${_langa[0]}"
    _helppack="${_langa[2]}"

    echo ${_locale} " unpacking..."
    cd "${srcdir}"/LibreOffice_${_rcver}_Linux_x86-64_rpm_langpack_${_locale}/RPMS

    # remove dictionaries if shipped - we ship them now in separate packages
    rm -vf *-dict-*.rpm || /bin/true

    for j in *.rpm
      do bsdtar -x -f $j
    done

    # the helppack rpm goes also into the langpack dir
    if (( $_helppack )); then
      bsdtar -x -f "${srcdir}"/LibreOffice_${_rcver}_Linux_x86-64_rpm_helppack_${_locale}/RPMS/*.rpm
    fi
  done
}

_package() {
  pkgdesc="$2 language pack for LibreOffice still"
  depends=('libreoffice-still')
  provides=("libreoffice-$1")
  conflicts=("libreoffice-$1")
  if [[ $1 != ${1,,} ]]; then
    replaces=(libreoffice-still-$1)
  fi

  cd "$srcdir"/LibreOffice_${_rcver}_Linux_x86-64_rpm_langpack_$1/RPMS
  mkdir -p "$pkgdir"/usr/lib/libreoffice
  cp -R opt/libreoffice*/* "$pkgdir"/usr/lib/libreoffice
  chown root:root -R "$pkgdir"/usr/lib/libreoffice
}

for _lang in "${_languages[@]}"; do
  declare -a "_langa=($_lang)"
  _locale="${_langa[0]}"
  _helppack="${_langa[2]}"
  _pkgname=libreoffice-still-${_locale,,}

  pkgname+=($_pkgname)
  source+=(${_url}/LibreOffice_${_oodlver}_Linux_x86-64_rpm_langpack_${_locale}.tar.gz{,.asc})

  if (( $_helppack )); then
    source+=(${_url}/LibreOffice_${_oodlver}_Linux_x86-64_rpm_helppack_${_locale}.tar.gz{,.asc})
  fi

  eval "package_${_pkgname}() {
    _package $_lang
  }"
done
